package com.fanketly.funacg2.data.repo

import com.fanketly.funacg2.data.db.HistoryDao
import com.fanketly.funacg2.data.entity.HistoryEntity
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
import javax.inject.Singleton

@Singleton
class HistoryRepo @Inject constructor(
    private val dao: HistoryDao,
) {
    fun getAll() = dao.getAll()

    suspend fun insert(entity: HistoryEntity) = dao.insert(entity)

    suspend fun delete(id: Int) = dao.delete(id)


}